package mapper;

import entity.Users;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: lagou-dubbo
 * @Author: GuoAn.Sun
 * @CreateTime: 2020-07-27 17:37
 * @Description: 用户操作mapper
 */
@Service
public interface UserMapper {
    //添加用户
    int register(Users users);

    //修改用户
    void updateUser(Users user);

    //根据用户id查询用户信息
    Users findUserById(Integer id);

    //查询条件所有用户信息
    List<Users> findAllUser(Users user);

    //根据用户id删除用户
    void deleteUser(Integer id);
}
